package no.ntnu.tdt4237;

public class Authentication{

	public static User logIn(String username, String password, boolean firstTime)
	{
		if (Database.login(username, password, firstTime)) {
			User user = Database.getUser(username);
			if (user != null) {
				return user;
			}
		}
		return null;
		
	}
}
